<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MVVM</title>
    <script src="./MVVM.js"></script>
    <link rel="stylesheet" href="https://unicons.iconscout.com/release/v4.0.8/css/line.css">
    <link rel="stylesheet" href="./assets/css/home.css">
    <link rel="shortcut icon" href="assets/img/favicon.ico">
    <style>
        body {
            margin: 0;
            padding: 0;
            /* 背景渐变色 */
            background: linear-gradient(45deg, #4b6cb7, #272F47);
            /* 溢出隐藏 */
            overflow: hidden;
        }
        
        #app {
            width: 100vw;
            height: 100vh;
        }
        
        main {
            width: 100%;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="myblog">
            <header>
                <div class="avatar">
                    <img src="./assets/img/avatar.jpg" alt="">
                </div>
                <h1 class="name">{{infoList.name}}</h1>
            </header>
            <main>
                <p class="desc">{{infoList.desc[0]}}<br/>{{infoList.desc[1]}}</p>
                <hr>
                <p class="desc">{{infoList.desc[2]}}</p>
                <div id="menu"></div>
                <div class="links">
                    <a href="./pages/vitae.html">{{infoList.links[0]}}</a>
                    <a href="./pages/blog.html">{{infoList.links[1]}}</a>
                    <a href="/components/vitae/works.html">{{infoList.links[2]}}</a>
                    <a href="tel:15302464434">{{infoList.links[3]}}</a>
                </div>
            </main>
            <footer>
                <p>Copyright &copy; 2024 <strong>蜡笔不新</strong> All Rights Reserved</p>
            </footer>
        </div>
    </div>
</body>
<script type="text/javascript">
    console.dir(window);

    // 创建一个MVVM实例
    let vm = new MVVM({
        el: '#app',
        data: {
            infoList: {
                name: '蜡笔不新',
                desc: ['个人博客', '分享好作品，传递正能量!', '欢迎来到我的主页!'],
                links: ['个人简历', '博客主页', '项目展示', '联系方式']
            }
        },
    })
</script>
<script src="/assets/js/more.js"></script>

</html>